Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Support OS version in platform string #5614

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cpuguy83
Copy link
Member

@cpuguy83 cpuguy83 commented Dec 27, 2024

This allows platforms following the new platforms.FormatAll function, which allows for setting the OSVersion field of the platform with <os>(<ver>)/<arch>.

Closes #5115


Note: In order to make FROM <img> match the correct OS version with the new platform format some changes need to be made to containerd/platforms (see vendor/ changes).

@@ -9327,6 +9328,140 @@ COPY Dockerfile /foo
}
}

func testPlatformWithOSVersion(t *testing.T, sb integration.Sandbox) {
Copy link
Collaborator

@profnandaa profnandaa Jan 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thinking of a workaround to test this on Windows, given we don't have support for scratch and the unionfs-like mounting... shouldn't be blocking if it's the only one pending, we can skip on Windows for now and file tracking issue on me.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cpuguy83 cpuguy83 force-pushed the platforms_format_all branch 5 times, most recently from a881f71 to 33ecd88 Compare January 7, 2025 18:15
@tonistiigi tonistiigi added this to the v0.19.0 milestone Jan 7, 2025
@tonistiigi
Copy link
Member

@cpuguy83 Added this to v0.19 , RC planned for 01/10

@cpuguy83 cpuguy83 force-pushed the platforms_format_all branch from 33ecd88 to 1646474 Compare January 7, 2025 23:52
This allows platforms following the new `platforms.FormatAll` function,
which allows for setting the `OSVersion` field of the platform with
`<os>(<ver>)/<arch>`.

Signed-off-by: Brian Goff <[email protected]>
@cpuguy83
Copy link
Member Author

cpuguy83 commented Jan 8, 2025

Upstreaming those vendor changes at containerd/platforms#22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add test using windows OSVersion
3 participants